﻿using System;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Ink;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using System.Xml.Linq;
using System.Linq;

namespace ArmoryBrowser.Entities.Achievements
{
    public class CategoryData
    {
        #region Fields
        private String _earnedField;
        private String _pointsField;
        private String _totalField;
        private String _totalPointsField;
        private String _earnedPointsField;
        #endregion
        #region Properties
        public String Earned
        {
            get
            {
                return this._earnedField;
            }
            set
            {
                this._earnedField = value;
            }
        }
        public String Points
        {
            get
            {
                return this._pointsField;
            }
            set
            {
                this._pointsField = value;
            }
        }
        public String Total
        {
            get
            {
                return this._totalField;
            }
            set
            {
                this._totalField = value;
            }
        }
        public String TotalPoints
        {
            get
            {
                return this._totalPointsField;
            }
            set
            {
                this._totalPointsField = value;
            }
        }
        public String EarnedPoints
        {
            get
            {
                return this._earnedPointsField;
            }
            set
            {
                this._earnedPointsField = value;
            }
        }
        #endregion
        #region Constructor
        public CategoryData(XElement element)
        {
            Earned = element.GetAttributeValue("earned");
            Points = element.GetAttributeValue("points");
            Total = element.GetAttributeValue("total");
            TotalPoints = element.GetAttributeValue("totalPoints");
            EarnedPoints = element.GetAttributeValue("earnedPoints");
        }
        #endregion
    }
}
